;; Python Configure

;; (when (maybe-require-package 'elpy)
;;   (elpy-enable)
;;   ;;(elpy-use-ipython)
;;   )


(add-hook 'python-base-mode-hook (lambda ()
;;                              (python-shell-interpreter . "python")
                              (eglot-ensure)))

(custom-set-variables
 '(python-indent-guess-indent-offset-verbose nil)
 '(python-indent-offset 4))

(define-skeleton my/insert-python-header
  "为 python 文件插入头信息"
  > "#!/usr/bin/env python3" \n
  > "# -*- coding:utf-8 -*-" \n\n _
  )

(provide 'init-python)
